import {
  getMovieList
} from './api/api'
export const store = {
  namespaced: true,
  state: {
  },
  mutations: {

  },
  actions: {
    GET_MOVIE_LIST: ({ commit, state }, params) => {
      console.log(params)
      return getMovieList(params)
    },
    GET_MOVIE_DETAIL: ({ commit, state }, params) => {
      // return new Promise((resolve, reject) => {
      //   resolve({
      //     code: 200,
      //     data: fakeObj.movieDetail,
      //     message: 'ok'
      //   })
      // })
    }
  }
}
